const mem=require('memory-format');

console.log(process.memoryUsage());

console.log(mem());